home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / basic / error.zip / ERROR.DOC < prev    next >
Text File  |  1987-02-01  |  1KB  |  26 lines

  1.     BASIC error trapping
  2.     February 1, 1987
  3.     
  4.     
  5.     
  6.     Have  you  ever written a BASIC program error trapping routine and then 
  7.     sat  there  putting  in  stuff like IF ERR = 61 THEN PRINT "DISK FULL", 
  8.     etc.?  It  can  go  on  and  on...  I spent a little time and created a 
  9.     random  access  file  which  contains all of the error messages from my 
  10.     DOS  manual.  Each record number is the number of the error. Now I tell 
  11.     the  error  trapping  routine  to  open  the  error  file and print the 
  12.     message found in record # err.
  13.     
  14.     In  this  archive  you  will  find  the  data file (ERROR.DAT), a BASIC 
  15.     source  file showing an example of how to access the data (EXAMPLE.BAS) 
  16.     and  a  program which will display the messages if you want to see them 
  17.     (DEMO.EXE).  Everything  was  done for Microsoft's QuickBASIC, however, 
  18.     add line numbers and it will work with interpreted BASIC.
  19.     
  20.     This  file is PUBLIC DOMAIN and has not been tested extensively, so let 
  21.     me  know  if  you  encounter  any problems. In any case you are free to 
  22.     copy or modify anything you like.
  23.     
  24.                                                 Al Harper
  25.                                  GENIE address: A.HARPER
  26.